package com.hundsun.cprs.yyt.gateway.enums;

public enum EnumFundOutIn {
	OUT("2","取款"),IN("1","充值");
	
	private String code;
	private String desc;
	
	private EnumFundOutIn(String code,String desc){
		this.code = code;
		this.desc = desc;
	}

	public String getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
	
	public static EnumFundOutIn index(String code){
		for (EnumFundOutIn et : EnumFundOutIn.values()) {
			if(et.getCode().equals(code))
				return et;
		}
		return null;
	}
}
